package com.zx.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zx.dao.UserMapper;
import com.zx.pojo.model.User;

@Service
public class HelloService {

	@Autowired
	UserMapper userMapper;
	
	public void sayHello(){
		System.out.println("hello service");
		User u = userMapper.selectByPrimaryKey(1);
		System.out.println("user name:"+u.getName());
	}
}
